package GUI;




import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;


public class ScreenGUI {
	
	private static int width = 800;
	private static int height = 600;
		CustomerGUI customerGUIObj = new CustomerGUI();
		OrderGUI orderGUIObj = new OrderGUI();
		ProductGUI productGUIObj = new ProductGUI();
		JTabbedPane table1 = new JTabbedPane();
		JFrame frame = new JFrame();
		
		JPanel CustomerPanel = new JPanel();
		JPanel OrderPanel = new JPanel();
		JPanel ProductPanel = new JPanel();
		JPanel panel3 = new JPanel();
	
	public ScreenGUI() {
		
		
	
		CustomerPanel.setLayout(null);
		CustomerPanel.add(customerGUIObj.add());
		CustomerPanel.add(customerGUIObj.update());
		CustomerPanel.add(customerGUIObj.delete());
		CustomerPanel.add(customerGUIObj.find());
		CustomerPanel.add(customerGUIObj.screen("by default"));
		
		
		 OrderPanel.setLayout(null);
		 OrderPanel.add(orderGUIObj.add());
		 OrderPanel.add(orderGUIObj.update());
		 OrderPanel.add(orderGUIObj.delete());
		 OrderPanel.add(orderGUIObj.find());
		 OrderPanel.add(orderGUIObj.screen("by default"));
		 
		 ProductPanel.setLayout(null);
		 ProductPanel.add(productGUIObj.add());
		 ProductPanel.add(productGUIObj.update());
		 ProductPanel.add(productGUIObj.delete());
		 ProductPanel.add(productGUIObj.find());
		 ProductPanel.add(productGUIObj.screen("by default"));
		
		
		table1.addTab("Customer", CustomerPanel);
		
			
		
		table1.addTab("Order",  OrderPanel);
		
		
		
		table1.addTab("Product", ProductPanel);
		
		
		
		
	
		frame.getContentPane().add(table1);
		
		frame.setSize(width, height);
		frame.setVisible(true);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
	}
	
	public void draw(){
		
	}
		
	}


